package com.micromsg.basic.sys.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 消息表实体类
 *
 * @author yangyang
 * @date 2024/04/06
 **/
@Data
@Table(name = "message")
public class Message {

    /**
     * 主键
     */
    @Id
    @Column(name = "ID")
    private String id;

    /**
     * 发送人USERID
     */
    @Column(name = "SENDER_ID")
    private String senderId;

    /**
     * 接收人USERID
     */
    @Column(name = "RECEIVER_ID")
    private String receiverId;

    /**
     * 消息内容
     */
    @Column(name = "CONTENT")
    private String content;

    /**
     * 消息发送时间
     */
    @Column(name = "SEND_TIME")
    private Date sendTime;

    /**
     * 标识消息是否已被发送
     */
    @Column(name = "SEND")
    private Byte send;

    /**
     * 文件路径或标识符
     */
    @Column(name = "FILE_PATH")
    private String filePath;

    /**
     * 字体样式
     */
    @Column(name = "FONT_STYLE")
    private String fontStyle;
}
